﻿namespace DimensionsHelper.LanguageService.Syntax;

public abstract class Literal<T> : Expression
{
    protected internal Literal(SyntaxKinds kind, T initValue, SyntaxNode? parent) :
        base(kind, parent)
    {
        Value = initValue;
    }

    /// <summary>
    ///     常量值
    /// </summary>
    public T Value { get; internal set; }
}